package com.volatileshooter.entity.bullets;

import org.newdawn.slick.geom.Vector2f;

import com.volatileshooter.entity.Entity;

public class BulletEntity extends Entity {
	
	private Vector2f position;
	private Vector2f direction;
	private float life;
	private float speed;
	
	public BulletEntity(Vector2f position, Vector2f direction) {
		super();
		this.position = position;
		this.direction = direction;
		this.direction.normalise();
		life = 0;
		speed = 6f;
		this.addController(new BulletController());
	}

	/**
	 * @return the position
	 */
	public Vector2f getPosition() {
		return position;
	}

	/**
	 * @return the direction
	 */
	public Vector2f getDirection() {
		return direction;
	}

	/**
	 * @return the life
	 */
	public float getLife() {
		return life;
	}

	/**
	 * @param life the life to set
	 */
	public void setLife(float life) {
		this.life = life;
	}

	/**
	 * @return the speed
	 */
	public float getSpeed() {
		return speed;
	}
	
	
	
}
